# coding:utf-8
import pymysql
import sys
sys.path.append("..")
from connect_db import *

if __name__ == '__main__':
    co = init_db()
    print co
    cur = co.cursor(cursor=pymysql.cursors.DictCursor)
    num = cur.execute('select password from student where name="%s"' % "admin")
    print num